﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Stone.ServiceInterfaces.ServiceInterfaces;
using CourseArraging.DAO;

namespace Stone.ServiceImpl.ServiceImpl
{
    class LsapService : ILsapService
    {
        LsapDAO lsapdao = new LsapDAO();
        #region ILsapService 成员

        public void Add(DataContracts.LsapEntity model)
        {
            lsapdao.Add(model);
        }

        public void Delete(int lsap_id)
        {
            lsapdao.Delete(lsap_id);
        }

        public bool Exists(int lsap_id)
        {
            return lsapdao.Exists(lsap_id);
        }

        public System.Data.DataTable GetList(int Top, string strWhere, string filedOrder)
        {
            return lsapdao.GetList(Top, strWhere, filedOrder);
        } 

        public DataContracts.LsapEntity GetModel(int lsap_id)
        {
            return lsapdao.GetModel(lsap_id);
        }

        public void Update(DataContracts.LsapEntity model)
        {
            lsapdao.Update(model);
        }

        public void UpdateZT(DataContracts.LsapEntity model)
        {
            lsapdao.UpdateZT(model);
        }

        #endregion
    }
}
